package com.fs.cv.pojo.pojodao;

/**
 * <p>权限实体类</p>
 *
 * @author : smy
 * @date : 2020-09-15 12:38
 **/
public class Permission {
    private int permissionId;
    private String name;
    private int parentId;
    private String type;
    private String url;
    private int sort;
    private int state;

    public Permission() {
    }

    public Permission(int permissionId, String name, int parentId, String type, String url, int sort, int state) {
        this.permissionId = permissionId;
        this.name = name;
        this.parentId = parentId;
        this.type = type;
        this.url = url;
        this.sort = sort;
        this.state = state;
    }

    public int getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(int permissionId) {
        this.permissionId = permissionId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getParentId() {
        return parentId;
    }

    public void setParentId(int parentId) {
        this.parentId = parentId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Permission{" +
                "permissionId=" + permissionId +
                ", name='" + name + '\'' +
                ", parentId=" + parentId +
                ", type='" + type + '\'' +
                ", url='" + url + '\'' +
                ", sort=" + sort +
                ", state=" + state +
                '}';
    }
}
